package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.dto.LearningPlanDTO;
import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;
import com.tianji.learning.domain.vo.LearningPlanVO;

import java.util.List;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author yb0os1
 * @since 2024-12-04
 */
public interface ILearningLessonService extends IService<LearningLesson> {

    void addUserLesson(Long userId, List<Long> courseIds);

    PageDTO<LearningLessonVO> queryMyLessonPage(PageQuery page);

    LearningLessonVO queryMyCurrentLesson();

    Long checkIsValidLesson(Long courseId);

    LearningLessonVO queryLessonStatus(Long courseId);

    Integer countLearningLessonByCourse(Long courseId);

    void deleteLesson(Long courseId);

    void createLearningPlan(LearningPlanDTO dto);

    LearningPlanPageVO queryLearningPlan(PageQuery page);
}
